package _3控件;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class JLabeItestFrame extends JFrame{
	public JLabeItestFrame() {
		
		JPanel p = new JPanel();
		this.add(p);
		
		JLabel l1 = new JLabel("娴嬭瘯鏂囧瓧");
		// 瀛椾綋new Font("瀛椾綋鍚�",鏄惁绮椾綋,瀛楀彿)
		l1.setFont(new Font("瀹嬩綋",0,15));
		// 鏂囧瓧棰滆壊
		l1.setForeground(Color.WHITE);
		l1.setForeground(new Color(255,0,0));// 绾㈢豢钃� 涓夊師鑹�
		p.add(l1);
	}
}